<?
if($_SESSION['is_admin_login'] != 1) {    
    header( 'Location:' . fwUrl("admin"));
}
?>
<? require_once 'page/__header.php'; ?>

<div class="controlBar">
    <div id="lnkLogout" class="controlBarButton shadowMe">LOGOUT</div>    
</div>


<script language="JavaScript" type="text/javascript">

    $(document).ready(function(){        
        $("#lnkLogout").click(function(){
            
            do__logout();            
 
        });        
    });
    
    
    function do__logout() {
        
        var url = "<?=getPage("dologout")?>";
        
        $.post(url, { "logout" : "admin" }, function(json) {    
        
            if(json.result && json.result == 1){
                window.setTimeout("location.reload(true)", 100);
            }
        });
    }
    
</script>

<? require_once 'page/__footer.php'; ?>